#!/usr/bin/python
# -*- coding: cp1250 -*-

from pepe.glib import *
from pepe.p_filesystem.checksums import chs_sha1

def get(infl):
    """
    """
    for f in glob.glob(infl):
        hsh = chs_sha1(f)
        #print hsh
        res = re.sub('\d', '', hsh)
        #res = "%s-%s-%s-%s" % (res[:3], res[3:6], res[6:9], res[9:12])
        
        # =26*26*26 *26*26*26 *26*26*26 ... 5,429,503,678,976
        res = "%s-%s-%s" % (res[:3], res[3:6], res[6:9])
        #print res, f
        return res

if __name__ == "__main__":
    ''' '''
    print get(sys.argv[1])
